import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
public class Zifu {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        Date d=new Date();
        String enter;
        boolean answer = true;
        while(answer){
            System.out.println("请输入字符:");
            enter = input.next();
            System.out.print(d+" ");
            System.out.println(enter);
            if(enter.equals("quit")){
                answer = false;
                System.out.println("退出程序。");
            }
        }
    }

}
